package cloector

import (
	"github.com/gin-gonic/gin"
)

func ExampleHandler(c *gin.Context) {
	ip := c.Request.Header.Get("X-Real-IP")

	if ip == "" {
		ip = c.Request.Header.Get("X-Forwarded-For")
	}

	if ip == "" {
		ip = c.Request.RemoteAddr
	}

	println(ip)
	// _, _ = w.Write(resp)
}
